﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace FirstClassAssignment {
    public partial class PrimeNumber : Form {

        private void confirm_Click(object sender, System.EventArgs e) {
            var primeNum = int.Parse(inputArea.Lines[inputArea.Lines.Length-1]);
            outputArea.Text = PrimeCal.Factors(primeNum);
        }

        public PrimeNumber() {
            InitializeComponent();
            confirm.Click += confirm_Click;
        }
    }
}
